 #define  _CRT_SECURE_NO_WARNINGS 1
#include<list>
using namespace std;
#include"list.h"
#include<iostream>

void test()
{
	Mylist::list<int>l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_back(5);


	Mylist::list<int>::iterator it = l.begin();
	it = l.erase(it);


	for (auto& ch : l)
	{

		cout << ch << ' ';
		
	}
	cout << endl;

	
}


void test2()
{
	std::list<int>l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);


	std::list<int>::iterator it = l.begin();
	it=l.erase(it);

	for (auto& ch : l)
	{
		cout << ch << ' ';

	}
	cout << endl;




}


void test3()
{
	std::list<int>l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);

	std::list<int> l2;
	l2 = l;
	for (auto& ch : l2)
	{
		cout << ch << ' ';

	}
	cout << endl;

	std::list<int> l3(l2);

	for (auto& ch : l2)
	{
		cout << ch << ' ';

	}
	cout << endl;


}



int main()
{
	Mylist::test4();
	//test2();
	return 0;
}